package com.lxr0860.lxr0860production_test.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class GetSystemInfoUtlils {
    //获取系统时间
    public static String getSystemTime() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");// HH:mm:ss
        Date date = new Date(System.currentTimeMillis());
        String systemTime = simpleDateFormat.format(date);
        return systemTime;
    }

    //获取系统时间
    public static String getSystemDate() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");// HH:mm:ss
        Date date = new Date(System.currentTimeMillis());
        String systemTime = simpleDateFormat.format(date);
        return systemTime;
    }
}
